﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.Default" %>
<asp:Literal ID="lLCount" Text="15" runat="server" Visible="false"/>
<input type="hidden" name="Rety" value="0" id="Rety" />
<input type="hidden" name="LeaveGID" value="0" id="LeaveGID" />
<script>
var GP012 = "<%=GetText("GP012")%>";
var GP013 = "<%=GetText("GP013")%>";
var GP014 = "<%=GetText("GP014")%>";
var C0087 = "<%=GetText("C0087")%>";
var C2006 = "<%=GetText("C2006")%>";
var GP041 = "<%=GetText("GP041")%>";
var GP204 = "<%=GetText("GP204")%>";
var GP207 = "<%=GetText("GP207")%>";
var GP205 = "<%=GetText("GP205")%>";
var GP206 = "<%=GetText("GP206")%>";
</script>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("GP000")%></h1>
							</div>
							<div class="submenuN_button"><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="Center9001Content">
							<div class="group_area">
								<div>
									<div class="floatl"><%=gtype=="3"?GetText("AS091"):GetText("C0016")%> <select id="selLearnL" onchange="searl(<%=sortField %>)">
										<option value="all" <%=(Learn==""?"selected":"")%>><%=GetText("C0027")%></option><%=GetLanguageSelect(Learn)%></select>&nbsp;&nbsp;&nbsp;&nbsp;<%=GetText("GP012")%> <select id="selGroupType" onchange="searl(<%=sortField %>)">
										<option value="0" <%=(gtype=="0"?"selected":"")%>><%=GetText("C0024")%></option>
										<option value="1" <%=(gtype=="1"?"selected":"")%>><%=GetText("GP013")%></option>
										<option value="2" <%=(gtype=="2"?"selected":"")%>><%=GetText("GP014")%></option>
										<option value="3" <%=(gtype=="3"?"selected":"")%>><%=GetText("C0087")%></option>
										</select>
									</div>
									<div class="floatr"><%=GetText("GP005", new string[] { RecordCount.ToString() })%> </div>
									<div class="clear"></div>
								</div>
								<div class="sort_language" style="text-align:right">
									<%=GetText("C2017")%>: <%=sortField == "1" ? "<strong>" + GetText("C2003").ToString() + "</strong>" : "<a href=\"" + WWWHost + "/groups/learn-" + Learn + "-" + (gtype == "" ? "0" :gtype) + "-1-1.htm\">" + GetText("C2003") + "</a>"%> | <%=sortField == "2" ? "<strong>" + GetText("GP202").ToString() + "</strong>" : "<a href=\"" + WWWHost + "/groups/" + Learn + "-" + (gtype == "" ? "0" : gtype) + "-2-1.htm\">" + GetText("GP202") + "</a>"%> | <%=sortField == "3" ? "<strong>" + GetText("C2002").ToString() + "</strong>" : "<a href=\"" + WWWHost + "/groups/learn-" + Learn + "-" + (gtype == "" ? "0" : gtype) + "-3-1.htm\">" + GetText("C2002") + "</a>"%>
								</div>
								<div id="myList" class="margin20T">
									<asp:Repeater ID="repGroup" runat="server">
										<ItemTemplate>
											<div class="Default_list">
												<div class="Default_list_left">
													<div class="pic75"><%#Eval("ImgUrlPath").ToString() == "" ? "<a class='photo_75' href='" + WWWHost + "/groups/" + Eval("GID").ToString() + "' title=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"><img src=\"/Images/No_pic.gif\" /></a>" : "<a class='photo_75' href='/groups/" + Eval("GID").ToString() + "' title=\"" + HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) + "\"><img src=\"/UploadImages/Groups/" + Eval("GroupID").ToString() + "_2.jpg\"  /></a>"%></div>
												</div>
												<div class="Default_list_right">
													<div class="default_list_right1">
														<div class="text14 right1_title_break"><a href="/groups/<%#Eval("GID").ToString()%>" title="<%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString()) %>"><%#Eval("Title").ToString()%></a></div>
														<div class="margin5 grey11">$GP012$: <%#Eval("GroupType").ToString() == "1" ? "<A href='/groups/learn-all-1-1-1.htm'>$GP013$</a>" : (Eval("GroupType").ToString() == "2" ? "<A href='/groups/learn-all-2-1-1.htm'>$GP014$</a>" : "<A href='/groups/all-3-1-1.htm'>$C0087$</a>")%> - <%#Eval("GroupType").ToString() != "3" ? (BLF.StaticData.HaveLanguageImage(Eval("Language1").ToString()) ? Eval("Language1", "<a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language1").ToString()) }) + "' align='absmiddle' /></a> ") : "") + "<a href='" + WWWHost + "/groups/learn-" + Eval("Language1") + "-0-1-1.htm'>" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language1").ToString()) }) + "</a>" : (BLF.StaticData.HaveLanguageImage(Eval("Language2").ToString()) ? Eval("Language2", "<a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("Language2").ToString()) }) + "' align='absmiddle' /></a> ") : "") + "<a href='" + WWWHost + "/groups/" + Eval("Language2") + "-3-1-1.htm'>" + GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(Eval("Language2").ToString()) }) + "</a>"%>
														<br />$C2006$: <%#GetText("GP006",new string[]{Eval("Members").ToString()})%>
														<%#(Eval("NewMembers").ToString() == "0" && Eval("Topics").ToString() == "0") ?"":"<br /><span class='txt_bg'>$GP041$:"%> <%#Eval("NewMembers").ToString() == "0" ? "" : GetText("GP006",new string[]{Eval("NewMembers").ToString()})%><%#Eval("Topics").ToString() == "0" ? "" : (Eval("NewMembers").ToString()=="0"?"":", ")+GetText("GP009",new string[]{Eval("Topics").ToString()})%></span></div>
													</div>
													<div class="default_list_right2" >
														<div><%#memberno.ToString() == Eval("Memberno").ToString() ? "<br /><img src='/Images/icon_common_edit.gif' align='absmiddle' /> <a href='/groups/editgroup/" + Eval("GID") + ".htm' >$GP206$</a>" : ""%>
														<%#((bool)Eval("MyInGroup") && memberno.ToString() != Eval("Memberno").ToString()) ? "<br /><img src='/Images/icon_group_leave.gif' align='absmiddle' /> <a href='#' onclick=\"Leave('" + Eval("GID").ToString() + "','" + Eval("Title").ToString().Replace("\"", "$s$").Replace("\'", "$d$") + "')\" >$GP207$</a>" : memberno.ToString() != Eval("Memberno").ToString() ? "<img src='/Images/icon_file_full.gif' align='absmiddle' /> <a href='/groups/" + Eval("GID").ToString() + "' >$GP204$</a><br /><img src='/Images/icon_add.gif' align='absmiddle' /> <a href='#' " + ((((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm) ? "onclick=\"Join('" + Eval("GID").ToString() + "','" + Eval("JoinOptions") + "','" + Eval("Title").ToString().Replace("\"", "$s$").Replace("\'", "$d$") + "')\"" : "onclick=\"NotAffirm()\"") + ">$GP205$</a>" : ""%>													
														</div>
													</div>
													<div class="clear"></div>
												</div>
												<div class="clear"></div>
											</div>
										</ItemTemplate>
									</asp:Repeater>                                                                         
								</div>
								<script>
								document.getElementById("myList").innerHTML=document.getElementById("myList").innerHTML.replace(/\$GP012\$/gi,GP012).replace(/\$GP013\$/gi,GP013).replace(/\$GP014\$/gi,GP014).replace(/\$C0087\$/gi,C0087).replace(/\$C2006\$/gi,C2006).replace(/\$GP041\$/gi,GP041).replace(/\$GP204\$/gi,GP204).replace(/\$GP207\$/gi,GP207).replace(/\$GP205\$/gi,GP205).replace(/\$GP206\$/gi,GP206);  
								</script>
								<%if (gtype != "3")
								{%>
								<div class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex,
								"", string.Format("<span class='page_none grey10'><a href='{4}/groups/learn-{1}-{2}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
								"", string.Format("<span class='page_none grey10'><a href='{4}/groups/learn-{1}-{2}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(GetText("Next")), WWWHost),
								string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
								string.Format("<span class='page_none grey10'><a href='{3}/groups/learn-{1}-{2}-{0}-$I$.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), WWWHost))%>   
								</div>
								<%}else {%>
								<div class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(lLCount.Text), pageIndex,
								"", string.Format("<span class='page_none grey10'><a href='{4}/groups/{1}-{2}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(GetText("Prev")), WWWHost),
								"", string.Format("<span class='page_none grey10'><a href='{4}/groups/{1}-{2}-{0}-$I$.htm'>{3}</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), HttpUtility.UrlEncode(GetText("Next")), WWWHost),
								string.Format("<span class='page_select'>{0}</span>&nbsp;", pageIndex),
								string.Format("<span class='page_none grey10'><a href='{3}/groups/{1}-{2}-{0}-$I$.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode(sortField.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode((gtype == "" ? "0" : gtype)), WWWHost))%>   
								</div>
								<%} %>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
									<ul class="common_right">
										<asp:Repeater ID="rptLL" runat="server">
											<ItemTemplate>										
												<li><a href='<%=WWWHost%>/groups/learn-<%#Eval("LanguageValue")%>-0-1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' border="0" align='absmiddle' /></a> <a href='<%=WWWHost%>/groups/learn-<%#Eval("LanguageValue")%>-0-1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
											</ItemTemplate>
										</asp:Repeater>
									</ul>
								<p align="right"><a href="<%=WWWHost %>/groups/categories.htm"><%=GetText("C0028")%></a></p>
								</div>
							</div>
						</div>
						<%if (tmList.Count != 0)
						{%>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("GP021")%></h4>
								<div class="layer_contentA5">
									<asp:Repeater ID="repTopic" runat="server">
									<ItemTemplate>
									<div class="common_right_pic_list">
										<div class="common_right_pic_listPIC"><div class="picsp"><a class="photo_sp" href="<%#WWWHost %>/<%#Eval("Memberno") %>.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\" />" : "<img src=\""+Eval("Avatar")+"\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>"%></a></div></div>
										<div class="common_right_pic_listCON"><a href="/groups/<%#Eval("GID") %>/topic/<%#Eval("FID") %>.htm"><%#HttpUtility.HtmlAttributeEncode(Eval("Title").ToString())%></a> <span class="grey12" dir="ltr">(<%#Eval("Topics")%>)</span></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
									
								</div>
							</div>
						</div>
					<%} %>
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right">
			</div>
			<div class="clear">
			</div>
		</div>
		<div id="body_900F">
		</div>
	</div>
</div>
<script>
var lhost="<%=WWWHost %>";
var joinTitle = "<%=GetText("GP052") %>";
var joinDesc ='<%=GetText("GP229") %>';
var GP231="<%=GetText("GP231") %>";
var C0056="<%=GetText("C0056") %>";
var GP232="<%=GetText("GP232") %>";
var GP230="<%=GetText("GP230") %>";
var GP115 = '<%=GetText("GP115") %>';
var joinDesc1 ='<%=GetText("GP117") %>';
var leaveTitle="<%=GetText("GP053") %>";
var NickName="<%=Escape(NickName) %>";
</script>
